package cn.nawang.ebeim.client.transfer;

import cn.nawang.ebeim.client.process.ProcessBar;
import com.alibaba.fastjson.annotation.JSONField;

/**
 * 传输信息封装
 * Created by GanJc on 2016/1/21.
 */
public class TransferObject {

    //数据源id
    private String dsId;

    //签名或版本
    private String signature;

    //在文件系统中的绝对路径
    private String filePath;

    private boolean isBreakPointUpload ;

    //进度条
    private ProcessBar processBar ;

    public TransferObject() {
    }

    public TransferObject(String dsId, String signature, String filePath) {
        this.dsId = dsId;
        this.signature = signature;
        this.filePath = filePath;
    }

    public String getDsId() {
        return dsId;
    }

    public void setDsId(String dsId) {
        this.dsId = dsId;
    }

    public String getSignature() {
        return signature;
    }

    public void setSignature(String signature) {
        this.signature = signature;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    @JSONField(serialize = false)
    public boolean isBreakPointUpload() {
        return isBreakPointUpload;
    }

    public void setBreakPointUpload(boolean breakPointUpload) {
        isBreakPointUpload = breakPointUpload;
    }

    public ProcessBar getProcessBar() {
        return processBar;
    }

    public void setProcessBar(ProcessBar processBar) {
        this.processBar = processBar;
    }

    @Override
    public String toString() {
        return "TransferObject{" +
                "dsId='" + dsId + '\'' +
                ", signature='" + signature + '\'' +
                ", filePath='" + filePath + '\'' +
                ", processBar=" + processBar +
                '}';
    }
}
